@extends('layouts.default')  
@section('content')
<div class="box primary">        
    <header>
        <h5>{{Lang::get('messages.add_repair_parts')}}</h5>
        <!-- .toolbar -->
        <div class="toolbar">
            <nav style="padding: 8px;">
                <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                    <i class="fa fa-minus"></i>
                </a> 
                <a href="javascript:;" class="btn btn-default btn-xs full-box">
                    <i class="fa fa-expand"></i>
                </a> 
                <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                    <i class="fa fa-times"></i>
                </a> 
            </nav>
        </div><!-- /.toolbar -->
    </header>
</header>
<div id="div-1" class="body">
    {{ Form::open(array('url' => 'repair_parts/store', 
                        'class'=>'form-horizontal',
                        'id'=>'form-validate')) }}         
    <div class="form-group">
        {{ Form::label('repair_parts', Lang::get('messages.repair_parts').'*', array(
                            'class'=>'control-label col-lg-4')) }}
        <div class="col-lg-8">
            {{ Form::text('repair_parts', Input::old('repair_parts'), array( 
                                'class' => 'form-control',
                                'placeholder'=>Lang::get('messages.repair_parts'))) 
            }}              
        </div>
    </div>
    <div class="form-group">
        {{ Form::label('desc',Lang::get('messages.description'), array(
                            'class'=>'control-label col-lg-4')) }}
        <div class="col-lg-8">
            {{ Form::textarea('desc', Input::old('desc'), array(
                                'class' => 'form-control',
                                'placeholder'=>Lang::get('messages.write_description'))) }}
            <br/>
            <div id="validation-div" class="">
            </div>
        </div>
    </div>
    <div>                         
    </div><br/>
    {{ Form::submit(Lang::get('messages.save_btn'), array(
                        'class' => 'btn btn-success btn-line')) }}
    <a type="button" class="btn btn-danger btn-line" 
       href='{{URL::to('/')}}'>{{Lang::get('messages.back_btn')}}</a>
    {{ Form::close() }}   
</div>
</div> 
@stop